package com.baobaotao.advice;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestTrowsAdvice {

	public static void main(String[] args) throws Exception{
		String configpath="com/baobaotao/advice/bean.xml";
		ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext(configpath);
		ForumService forunservice=(ForumService)ctx.getBean("forumservice");
		Forum forum =new Forum();
		forunservice.updateForum(forum);
		//forunservice.removeForum(3);

	}

}
